package com.bachelor.community.model.vo;

import com.bachelor.community.model.entity.Tag;
import lombok.Data;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

@Data
public class QuestionVO {
    private Long id;
    private String title;
    private String content;
    private String username;
    private String account;
    private Integer questioner;
    private Timestamp createTime;
    private Timestamp updateTime;
    private Integer viewCount = 0;
    private Integer answerCount = 0;
    private Integer credit = 0;
    private Boolean isTop;
    private Boolean essential;
    private Boolean isSolved;
    private List<Tag> tags = new ArrayList<>();
    private String avatar;
    private String introduction;
    private Integer reward;
    private String executionResult;
    private String errorMessage;
    private String completeCode;
    private String errorCode;
    private String errorRow;
    private String errorColumn;
    private Integer state;
}
